﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp9
{
    class AgeSort : IComparer<Student>
    {
        public int Compare(Student x, Student y)
        {
            return x.age.CompareTo(y.age);
        }
    }
}
